summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometer.py')
-rwxr-xr-xglucometer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometer.py b/glucometer.py
index c2504f2..facd88b 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -45,8 +45,8 @@ def main():
device = driver.Device(args.device)
if args.action == 'dump':
- for reading in device.get_readings(args.unit):
- print('%s,%f' % reading)
+ for reading in device.get_readings():
+ print('%s,%f' % (reading.timestamp, reading.get_value_as(args.unit)))
elif args.action == 'datetime':
if args.set == 'now':
print(device.set_datetime())